# $Id: PKGBUILD 78438 2012-10-18 11:57:41Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Slash <demodevil5[at]yahoo[dot]com>
# Contributor: Babets
# Contributor: Vain

pkgname=warsow-data
pkgver=1.02
pkgrel=1
pkgdesc="a free online multiplayer competitive FPS based on the Qfusion engine (data files)"
url="http://www.warsow.net/"
license=('custom:Warsow Content License')
arch=('any') 
depends=()
makedepends=('unzip')
source=("http://www.warsow.net:1337/~warsow/${pkgver}/warsow_${pkgver}.tar.gz")
md5sums=('1f0aa20bb441d6734de2f6ff19b8cb2b')

build() {
    cd $srcdir/
}

package() {
    # Create Destination Directories
    install -d $pkgdir/opt/warsow/

    # Move Data to Destination Directory
    cp -r $srcdir/warsow_${pkgver}/basewsw $pkgdir/opt/warsow

    # Install Custom License: Warsow Content License
    install -D -m 0644 $srcdir/warsow_${pkgver}/docs/license.txt $pkgdir/usr/share/licenses/${pkgname}/license.txt
}

# vim: ts=2:sw=2
